#include "qtc.h"
#include <QCoreApplication>

int main(int argc, char *argv[]) 
{ 
    QCoreApplication a(argc, argv); 
    SubThread1* t1 = new SubThread1(&a); //由主线程创建 
    t1->start(); 
    SubThread2* t2 = new SubThread2(&a); //由主线程创建 
    t2->start(); 
    SubThread3* t3 = new SubThread3(&a); //由主线程创建 
    t3->start(); 
    return a.exec(); 
}
